﻿using System;
using System.Runtime.Serialization;

namespace EvidenceManagement.Model
{
    [DataContract]
    [DbObject(SelectCommandText = "Race_Select"
        , InsertCommandText = "Race_Insert"
        , DeleteCommandText = "Race_Delete"
        , UpdateCommandText = "Race_Update")]
    public class Race:IAuditable
    {
        /// <summary>
        /// Gets or sets the race ID.
        /// </summary>
        /// <value>The race ID.</value>
        public Guid RaceID { get; set; }
        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>The description.</value>
        public string Description { get; set; }
        /// <summary>
        /// Gets or sets the system description.
        /// </summary>
        /// <value>The system description.</value>
        public string SystemDescription { get; set; }

        #region IAuditable Members

        [DbColumn][DataMember]
        public Guid CreatedBy
        {
            get;
            set;
        }

        [DbColumn][DataMember]
        public Guid ModifiedBy
        {
            get;
            set;
        }

        public bool IsDeleted
        {
            get;
            set;
        }

        #endregion        
        
    }
}
